﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp13
{
    class Student:IComparable
    {
        

        public int Num { get; set; }
        public string Name { get; set; }
        public int Age { get; set; }

        public Student(int num, string name, int age)
        {
            Num = num;
            Name = name;
            Age = age;
        }



        public override string ToString()
        {
            return $"学号是{Num}，姓名是{Name}，年龄是{Age}";
        }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }

       
    }
}
